Page({
  data: {
    aValue: 2,
    bvalue: 2 ,
    cValue: 2,
    autosize: { maxHeight: 100, minHeight: 100},
    show: false,
    currentDate: new Date().getTime(),
    minDate: new Date().getTime(),
    formatter(type, value) {
      if (type === 'year') {
        return `${value}年`;
      }
      if (type === 'month') {
        return `${value}月`;
      }
      return value;
    },
  },
  show() {
    this.setData({show:true})
  },
  onInput(event) {
    this.setData({
      currentDate: event.detail,
    });
  },
  complete() {
    this.setData({show: false})
  },
  OfViolations(e) {
    console.log(e);
    if(e.mark.type === '1') {
      this.setData({aValue: e.detail})
    } else if(e.mark.type === '2') {
      this.setData({bValue: e.detail})
    }else if(e.mark.type === '3') {
      this.setData({cValue: e.detail})
    }
    
  }
})